package IoC;

/**
 * @author krystal
 * @date 2023/3/5 18:23
 */
public class Car {
    private FrameWork frameWork;

    public Car(FrameWork frameWork){
        this.frameWork=frameWork;
    }

    public void init(){
        System.out.println("执行car");
        //依赖车身
        frameWork.init();
    }
}
